﻿using System.Windows;

namespace WPF入门1
{
    public partial class Window2 : Window
    {
        public Window2()
        {
            InitializeComponent();
        }

        private void Btn_name_OnClick(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("yejing");
        }

        private void Btn_age_OnClick(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("35");
        }

        private void Btn_Gender_OnClick(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("男");
        }

        private void Btn_Jibie_OnClick(object sender, RoutedEventArgs e)
        {
            MessageBox.Show("中级");
        }

        private void Btn_close_Click(object sender, RoutedEventArgs e)
        {
            Context._window.Close();
            Context._Window2.Close();
        }

        private void Window2_OnLoaded(object sender, RoutedEventArgs e)
        {
            Context._Window2 = this;
        }
    }
}